package com.znh;

import com.znh.common.RedisQuery;
import com.znh.common.Utils;
import com.znh.entity.GameRule;
import com.znh.entity.Piece;

import java.awt.*;
import java.io.IOException;
import java.util.*;
import java.util.List;

/**
 * @version 1.0
 * @Author znh
 * @Date 2024/5/30 下午1:59
 * @注释
 */
public class Test {
    public static void main(String[] args) {
//        RedisQuery.set("test","1");
        System.out.println(Character.forDigit(10-('7'-'0'),10));
    }

    public static void reverseMap(Map<Point, Integer> phase) {
        HashMap<Point, Integer> temp = new HashMap<>();
        phase.forEach((point, piece) -> {
            Utils.reversePoint(point);
            temp.put(point, piece);
        });
        phase.clear();
        phase.putAll(temp);
    }
}
